<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Hero War: Référence de la classe gfx::MapLayer</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css">
<link href="../../doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Généré par Doxygen 1.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="../../index.html"><span>Page&nbsp;principale</span></a></li>
      <li><a href="../../namespaces.html"><span>Espaces&nbsp;de&nbsp;nommage</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Fichiers</span></a></li>
      <li><a href="../../examples.html"><span>Exemples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="../../annotated.html"><span>Liste&nbsp;des&nbsp;classes</span></a></li>
      <li><a href="../../hierarchy.html"><span>Hiérarchie&nbsp;des&nbsp;classes</span></a></li>
      <li><a href="../../functions.html"><span>Membres&nbsp;de&nbsp;classe</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="../../d0/d1c/namespacegfx.html">gfx</a>::<a class="el" href="../../d2/dc0/classgfx_1_1_map_layer.html">MapLayer</a>
  </div>
</div>
<div class="contents">
<h1>Référence de la classe gfx::MapLayer</h1><!-- doxytag: class="gfx::MapLayer" --><!-- doxytag: inherits="gfx::Map" --><a class="el" href="../../dc/dcf/classgfx_1_1_map.html" title="Classes qui gère la matrices d&#39;une map.">Map</a> qui affiche dynamiquement des drawable un par un selon le viewport.  
<a href="#_details">Plus de détails...</a>
<p>
<code>#include &lt;<a class="el" href="../../d5/d2c/_map_layer_8h-source.html">MapLayer.h</a>&gt;</code>
<p>
<div class="dynheader">
Graphe d'héritage de gfx::MapLayer:</div>
<div class="dynsection">
<p><center><img src="../../dc/d17/classgfx_1_1_map_layer__inherit__graph.png" border="0" usemap="#d7/d08/gfx_1_1_map_layer__inherit__map" alt="Inheritance graph"></center>
<map name="d7/d08/gfx_1_1_map_layer__inherit__map">
<area shape="rect" href="../../dc/dcf/classgfx_1_1_map.html" title="Classes qui gère la matrices d&#39;une map." alt="" coords="21,80,93,107"></map>
<center><font size="2">[<a href="../../graph_legend.html">légende</a>]</font></center></div>

<p>
<a href="../../d6/dc9/classgfx_1_1_map_layer-members.html">Liste de tous les membres</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Fonctions membres publiques</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dc0/classgfx_1_1_map_layer.html#ae3b52f6e114949c5c777827e9c3fafd">MapLayer</a> (const int &amp;w, const int &amp;h, <a class="el" href="../../d0/d1c/namespacegfx.html#d36691b69ef221131fbe25be4de15885">TileSet</a> *tileSet, const sf::IntRect &amp;tileDim)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3cc8cb4f735c95027fb6478b69b52e13"></a><!-- doxytag: member="gfx::MapLayer::getTileRect" ref="3cc8cb4f735c95027fb6478b69b52e13" args="() const " -->
sf::IntRect&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dc0/classgfx_1_1_map_layer.html#3cc8cb4f735c95027fb6478b69b52e13">getTileRect</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retourne la dimensio d'un tile normal. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dc0/classgfx_1_1_map_layer.html#a7a329ace4ebd8d11579b31aca7aa935">setTile</a> (const int id, const sf::Drawable *tile)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Ajoute un tile au TileSet.  <a href="#a7a329ace4ebd8d11579b31aca7aa935"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1f7740fe56fe3aa582a06bc5f193f164"></a><!-- doxytag: member="gfx::MapLayer::setSubRect" ref="1f7740fe56fe3aa582a06bc5f193f164" args="(const sf::FloatRect SubRect)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dc0/classgfx_1_1_map_layer.html#1f7740fe56fe3aa582a06bc5f193f164">setSubRect</a> (const sf::FloatRect SubRect)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Définie la zone à afficher (viewport). <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="39d75fe21d1db46dee231f815fa64019"></a><!-- doxytag: member="gfx::MapLayer::getSubRect" ref="39d75fe21d1db46dee231f815fa64019" args="() const " -->
sf::FloatRect&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/dc0/classgfx_1_1_map_layer.html#39d75fe21d1db46dee231f815fa64019">getSubRect</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Retourne la zone à afficher (viewport). <br></td></tr>
<tr><td colspan="2"><br><h2>Fonctions membres protégées</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b51c0a5202f7782751af7225f8525d88"></a><!-- doxytag: member="gfx::MapLayer::Render" ref="b51c0a5202f7782751af7225f8525d88" args="(sf::RenderTarget &amp;Target) const " -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>Render</b> (sf::RenderTarget &amp;Target) const </td></tr>

</table>
<hr><a name="_details"></a><h2>Description détaillée</h2>
<a class="el" href="../../dc/dcf/classgfx_1_1_map.html" title="Classes qui gère la matrices d&#39;une map.">Map</a> qui affiche dynamiquement des drawable un par un selon le viewport. <dl compact><dt><b>Exemples: </b></dt><dd>

<p>
<a class="el" href="../../df/d25/main_8cpp-example.html#_a6">main.cpp</a>.</dl>
<p>Définition à la ligne <a class="el" href="../../d5/d2c/_map_layer_8h-source.html#l00023">23</a> du fichier <a class="el" href="../../d5/d2c/_map_layer_8h-source.html">MapLayer.h</a>.</p>
<hr><h2>Documentation des constructeurs et destructeur</h2>
<a class="anchor" name="ae3b52f6e114949c5c777827e9c3fafd"></a><!-- doxytag: member="gfx::MapLayer::MapLayer" ref="ae3b52f6e114949c5c777827e9c3fafd" args="(const int &amp;w, const int &amp;h, TileSet *tileSet, const sf::IntRect &amp;tileDim)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gfx::MapLayer::MapLayer           </td>
          <td>(</td>
          <td class="paramtype">const int &amp;&nbsp;</td>
          <td class="paramname"> <em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int &amp;&nbsp;</td>
          <td class="paramname"> <em>h</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d0/d1c/namespacegfx.html#d36691b69ef221131fbe25be4de15885">TileSet</a> *&nbsp;</td>
          <td class="paramname"> <em>tileSet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const sf::IntRect &amp;&nbsp;</td>
          <td class="paramname"> <em>tileDim</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>w</em>&nbsp;</td><td>Largeur de la map </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>h</em>&nbsp;</td><td>Hauteur de la map </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>tileSet</em>&nbsp;</td><td>TileSet qui associe la matrice au sf::Drawable </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>tileDim</em>&nbsp;</td><td>Dimension d'un tile normal </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr><h2>Documentation des fonctions membres</h2>
<a class="anchor" name="a7a329ace4ebd8d11579b31aca7aa935"></a><!-- doxytag: member="gfx::MapLayer::setTile" ref="a7a329ace4ebd8d11579b31aca7aa935" args="(const int id, const sf::Drawable *tile)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void gfx::MapLayer::setTile           </td>
          <td>(</td>
          <td class="paramtype">const int&nbsp;</td>
          <td class="paramname"> <em>id</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const sf::Drawable *&nbsp;</td>
          <td class="paramname"> <em>tile</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Ajoute un tile au TileSet. 
<p>
<dl compact><dt><b>Paramètres:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>Id du tile ajouté </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>tile</em>&nbsp;</td><td>Partie graphique du tile </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr>La documentation de cette classe a été générée à partir du fichier suivant :<ul>
<li>C:/Documents and Settings/israhal17/Bureau/devel/HeroWar/include/gfx/<a class="el" href="../../d5/d2c/_map_layer_8h-source.html">MapLayer.h</a></ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Généré le Wed Feb 4 02:28:43 2009 pour Hero War par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="../../doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>
